//
//  rankListTableViewCell.m
//  FaceRecognition
//
//  Created by syun on 17/2/10.
//  Copyright © 2017年 Sylar. All rights reserved.
//

#import "rankListTableViewCell.h"

@implementation rankListTableViewCell

@synthesize headImage,nameLabel,numLabel,ranknumLabel;

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if (self) {
        self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
        
        ranknumLabel = [[UILabel alloc]initWithFrame:CGRectMake(15, 21.5, 50, 15)];
        [self.contentView addSubview:ranknumLabel];

        headImage = [[UIImageView alloc]initWithFrame:CGRectMake(SCREENWIDTH/6-20, 9, 40, 40)];
        [self.contentView addSubview:headImage];
        
        nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(SCREENWIDTH/2-50, 20, 100, 18)];
        nameLabel.textAlignment = NSTextAlignmentCenter;
        [nameLabel setFont:[UIFont systemFontOfSize:18]];
        [nameLabel setTextColor:colorFromHex(@"#3b3b3b")];
        [self.contentView addSubview:nameLabel];
        
        
        numLabel = [[UILabel alloc]initWithFrame:CGRectMake(SCREENWIDTH/6*5-100, 22, 200, 14)];
        [numLabel setFont:[UIFont systemFontOfSize:14]];
        numLabel.textAlignment = NSTextAlignmentCenter;
        [numLabel setTextColor:colorFromHex(@"#3b3b3b")];
        [self.contentView addSubview:numLabel];
        
    }
    
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
